import {request} from "../../request/index.js"

Page({
  data: {
    pointList: []
    },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    request({
      url: "/point/list/1", 
      data: {
      }, 
      header: {
        'content-type': 'application/json' // 默认值
      }
    })
    .then(res => {
      var point = res.data
      var pointList = []
      point.forEach((item) => {
        pointList.push(item)
      })
      this.setData({
        pointList
      })
    })
  },
  gotodetail(e) {
    var tagId = e.currentTarget.id
    wx.navigateTo({
      // url: '../findWire/findWire?tagId=' + tagId,
      url: '../findWire/findWire?tagId=' + tagId,

    })
  }
})